<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "https://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<meta name="generator" content="Doxygen 1.8.15"/>
<meta name="viewport" content="width=device-width, initial-scale=1"/>
<title>WB32L003 Standard Peripherals Firmware Library: wb32l003_awk.h Source File</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="dynsections.js"></script>
<link href="search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="search/searchdata.js"></script>
<script type="text/javascript" src="search/search.js"></script>
<link href="doxygen.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr style="height: 56px;">
  <td id="projectalign" style="padding-left: 0.5em;">
   <div id="projectname">WB32L003 Standard Peripherals Firmware Library
   </div>
  </td>
 </tr>
 </tbody>
</table>
</div>
<!-- end header part -->
<!-- Generated by Doxygen 1.8.15 -->
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
var searchBox = new SearchBox("searchBox", "search",false,'Search');
/* @license-end */
</script>
<script type="text/javascript" src="menudata.js"></script>
<script type="text/javascript" src="menu.js"></script>
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
$(function() {
  initMenu('',true,false,'search.php','Search');
  $(document).ready(function() { init_search(); });
});
/* @license-end */</script>
<div id="main-nav"></div>
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
     onmouseover="return searchBox.OnSearchSelectShow()"
     onmouseout="return searchBox.OnSearchSelectHide()"
     onkeydown="return searchBox.OnSearchSelectKey(event)">
</div>

<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<iframe src="javascript:void(0)" frameborder="0" 
        name="MSearchResults" id="MSearchResults">
</iframe>
</div>

<div id="nav-path" class="navpath">
  <ul>
<li class="navelem"><a class="el" href="dir_6d2d5b60bd20db849a9486835a2715aa.html">Libraries</a></li><li class="navelem"><a class="el" href="dir_5ec8cccc32fa528457f3b4ed28e1a2cf.html">WB32L003_StdPeriph_Driver</a></li><li class="navelem"><a class="el" href="dir_cb9a941ec225bfb9bad4e8246158e282.html">inc</a></li>  </ul>
</div>
</div><!-- top -->
<div class="header">
  <div class="headertitle">
<div class="title">wb32l003_awk.h</div>  </div>
</div><!--header-->
<div class="contents">
<a href="wb32l003__awk_8h.html">Go to the documentation of this file.</a><div class="fragment"><div class="line"><a name="l00001"></a><span class="lineno">    1</span>&#160;</div><div class="line"><a name="l00010"></a><span class="lineno">   10</span>&#160;<span class="comment">/* Define to prevent recursive inclusion -------------------------------------*/</span></div><div class="line"><a name="l00011"></a><span class="lineno">   11</span>&#160;<span class="preprocessor">#ifndef __WB32L003_AWK_H</span></div><div class="line"><a name="l00012"></a><span class="lineno">   12</span>&#160;<span class="preprocessor">#define __WB32L003_AWK_H</span></div><div class="line"><a name="l00013"></a><span class="lineno">   13</span>&#160;</div><div class="line"><a name="l00014"></a><span class="lineno">   14</span>&#160;<span class="preprocessor">#ifdef __cplusplus</span></div><div class="line"><a name="l00015"></a><span class="lineno">   15</span>&#160; <span class="keyword">extern</span> <span class="stringliteral">&quot;C&quot;</span> {</div><div class="line"><a name="l00016"></a><span class="lineno">   16</span>&#160;<span class="preprocessor">#endif</span></div><div class="line"><a name="l00017"></a><span class="lineno">   17</span>&#160;</div><div class="line"><a name="l00018"></a><span class="lineno">   18</span>&#160;<span class="comment">/* Includes ------------------------------------------------------------------*/</span></div><div class="line"><a name="l00019"></a><span class="lineno">   19</span>&#160;<span class="preprocessor">#include &quot;wb32l003.h&quot;</span></div><div class="line"><a name="l00020"></a><span class="lineno">   20</span>&#160;</div><div class="line"><a name="l00029"></a><span class="lineno">   29</span>&#160;<span class="comment">/* Exported types ------------------------------------------------------------*/</span></div><div class="line"><a name="l00030"></a><span class="lineno">   30</span>&#160;</div><div class="line"><a name="l00034"></a><span class="lineno"><a class="line" href="struct_a_w_k___init_type_def.html">   34</a></span>&#160;<span class="keyword">typedef</span> <span class="keyword">struct</span></div><div class="line"><a name="l00035"></a><span class="lineno">   35</span>&#160;{</div><div class="line"><a name="l00036"></a><span class="lineno"><a class="line" href="struct_a_w_k___init_type_def.html#a188e0b04e3b28467345a4e364883782f">   36</a></span>&#160;  uint32_t <a class="code" href="struct_a_w_k___init_type_def.html#a188e0b04e3b28467345a4e364883782f">AWK_CLK_SEL</a>;                      </div><div class="line"><a name="l00037"></a><span class="lineno"><a class="line" href="struct_a_w_k___init_type_def.html#a1d72fa6916998001e3a023afa3b5a309">   37</a></span>&#160;  uint32_t <a class="code" href="struct_a_w_k___init_type_def.html#a1d72fa6916998001e3a023afa3b5a309">AWK_HSE_PRSC</a>;                     </div><div class="line"><a name="l00038"></a><span class="lineno"><a class="line" href="struct_a_w_k___init_type_def.html#a882dc5b61e17919d9d59759d732daecc">   38</a></span>&#160;  uint32_t <a class="code" href="struct_a_w_k___init_type_def.html#a882dc5b61e17919d9d59759d732daecc">AWK_DIV_SEL</a>;                      </div><div class="line"><a name="l00039"></a><span class="lineno"><a class="line" href="struct_a_w_k___init_type_def.html#a59921863765c7a3f52f9c0840aa12f1d">   39</a></span>&#160;  uint32_t <a class="code" href="struct_a_w_k___init_type_def.html#a59921863765c7a3f52f9c0840aa12f1d">AWK_RLOAD_VAL</a>;                    </div><div class="line"><a name="l00040"></a><span class="lineno">   40</span>&#160;} <a class="code" href="struct_a_w_k___init_type_def.html">AWK_InitTypeDef</a>;</div><div class="line"><a name="l00041"></a><span class="lineno">   41</span>&#160;</div><div class="line"><a name="l00042"></a><span class="lineno">   42</span>&#160;<span class="comment">/* Exported constants --------------------------------------------------------*/</span></div><div class="line"><a name="l00043"></a><span class="lineno">   43</span>&#160;</div><div class="line"><a name="l00051"></a><span class="lineno"><a class="line" href="wb32l003__awk_8h.html#a9b08f066a4f7f079e62756c6821d3021">   51</a></span>&#160;<span class="preprocessor">#define AWK_CLK_SEL_STOP                       (0x00U &lt;&lt; 5) </span></div><div class="line"><a name="l00052"></a><span class="lineno"><a class="line" href="wb32l003__awk_8h.html#aeb57688f61ab2587488058a2d6fec3f4">   52</a></span>&#160;<span class="preprocessor">#define AWK_CLK_SEL_LSI                        (0x01U &lt;&lt; 5) </span></div><div class="line"><a name="l00053"></a><span class="lineno"><a class="line" href="wb32l003__awk_8h.html#aac52afbce17c21da1254bf509e35ce6a">   53</a></span>&#160;<span class="preprocessor">#define AWK_CLK_SEL_HSE                        (0x02U &lt;&lt; 5) </span></div><div class="line"><a name="l00054"></a><span class="lineno"><a class="line" href="wb32l003__awk_8h.html#a815b2635bdec08aab2b332355ccf16f8">   54</a></span>&#160;<span class="preprocessor">#define AWK_CLK_SEL_LSE                        (0x03U &lt;&lt; 5) </span></div><div class="line"><a name="l00056"></a><span class="lineno">   56</span>&#160;<span class="preprocessor">#define IS_AWK_CLK_SEL(SEL)                    ((SEL == AWK_CLK_SEL_STOP) || \</span></div><div class="line"><a name="l00057"></a><span class="lineno">   57</span>&#160;<span class="preprocessor">                                                (SEL == AWK_CLK_SEL_LSI) || \</span></div><div class="line"><a name="l00058"></a><span class="lineno">   58</span>&#160;<span class="preprocessor">                                                (SEL == AWK_CLK_SEL_HSE)  || \</span></div><div class="line"><a name="l00059"></a><span class="lineno">   59</span>&#160;<span class="preprocessor">                                                (SEL == AWK_CLK_SEL_LSE))</span></div><div class="line"><a name="l00060"></a><span class="lineno">   60</span>&#160;</div><div class="line"><a name="l00067"></a><span class="lineno">   67</span>&#160;<span class="preprocessor">#define IS_AWK_HSE_PRSC(PRSC)                  ((PRSC &lt; 0xFFF))</span></div><div class="line"><a name="l00068"></a><span class="lineno">   68</span>&#160;</div><div class="line"><a name="l00075"></a><span class="lineno">   75</span>&#160;<span class="preprocessor">#define IS_AWK_RLOAD_VAL(VAL)                  ((VAL &lt; 0xFF))</span></div><div class="line"><a name="l00076"></a><span class="lineno">   76</span>&#160;</div><div class="line"><a name="l00083"></a><span class="lineno">   83</span>&#160;<span class="preprocessor">#define IS_AWK_DIV_SEL(DIV)                    ((DIV &lt; 0xF))</span></div><div class="line"><a name="l00084"></a><span class="lineno">   84</span>&#160;</div><div class="line"><a name="l00093"></a><span class="lineno">   93</span>&#160;<span class="comment">/* Exported macro ------------------------------------------------------------*/</span></div><div class="line"><a name="l00094"></a><span class="lineno">   94</span>&#160;<span class="comment">/* Exported functions --------------------------------------------------------*/</span></div><div class="line"><a name="l00095"></a><span class="lineno">   95</span>&#160;</div><div class="line"><a name="l00096"></a><span class="lineno">   96</span>&#160;<span class="keywordtype">void</span> <a class="code" href="group___a_w_k.html#gaeb9260d5f49b01fab90daedb57fdaedf">AWK_DeInit</a>(<span class="keywordtype">void</span>);</div><div class="line"><a name="l00097"></a><span class="lineno">   97</span>&#160;<span class="keywordtype">void</span> <a class="code" href="group___a_w_k.html#ga466833d5ddf980438de3cb2aca78e34b">AWK_Init</a>(<a class="code" href="struct_a_w_k___init_type_def.html">AWK_InitTypeDef</a>* AWK_InitStruct);</div><div class="line"><a name="l00098"></a><span class="lineno">   98</span>&#160;<span class="keywordtype">void</span> AWK_StructInit(<a class="code" href="struct_a_w_k___init_type_def.html">AWK_InitTypeDef</a>* AWK_InitStruct);</div><div class="line"><a name="l00099"></a><span class="lineno">   99</span>&#160;<span class="keywordtype">void</span> <a class="code" href="group___a_w_k.html#ga5925a1395f7a44e64ace28c64186518f">AWK_Cmd</a>(FunctionalState NewState);</div><div class="line"><a name="l00100"></a><span class="lineno">  100</span>&#160;FlagStatus <a class="code" href="group___a_w_k.html#gadc631292241da5c23be9b270d28f92dd">AWK_GetFlagStatus</a>(<span class="keywordtype">void</span>);</div><div class="line"><a name="l00101"></a><span class="lineno">  101</span>&#160;<span class="keywordtype">void</span> <a class="code" href="group___a_w_k.html#gac75694af5d4437bd8849463bfa6eeb8d">AWK_ClearFlag</a>(<span class="keywordtype">void</span>);</div><div class="line"><a name="l00102"></a><span class="lineno">  102</span>&#160;</div><div class="line"><a name="l00111"></a><span class="lineno">  111</span>&#160;<span class="preprocessor">#ifdef __cplusplus</span></div><div class="line"><a name="l00112"></a><span class="lineno">  112</span>&#160;}</div><div class="line"><a name="l00113"></a><span class="lineno">  113</span>&#160;<span class="preprocessor">#endif</span></div><div class="line"><a name="l00114"></a><span class="lineno">  114</span>&#160;</div><div class="line"><a name="l00115"></a><span class="lineno">  115</span>&#160;<span class="preprocessor">#endif </span><span class="comment">/*__WB32L003_AWK_H */</span><span class="preprocessor"></span></div><div class="ttc" id="struct_a_w_k___init_type_def_html_a59921863765c7a3f52f9c0840aa12f1d"><div class="ttname"><a href="struct_a_w_k___init_type_def.html#a59921863765c7a3f52f9c0840aa12f1d">AWK_InitTypeDef::AWK_RLOAD_VAL</a></div><div class="ttdeci">uint32_t AWK_RLOAD_VAL</div><div class="ttdef"><b>Definition:</b> wb32l003_awk.h:39</div></div>
<div class="ttc" id="struct_a_w_k___init_type_def_html_a882dc5b61e17919d9d59759d732daecc"><div class="ttname"><a href="struct_a_w_k___init_type_def.html#a882dc5b61e17919d9d59759d732daecc">AWK_InitTypeDef::AWK_DIV_SEL</a></div><div class="ttdeci">uint32_t AWK_DIV_SEL</div><div class="ttdef"><b>Definition:</b> wb32l003_awk.h:38</div></div>
<div class="ttc" id="group___a_w_k_html_gaeb9260d5f49b01fab90daedb57fdaedf"><div class="ttname"><a href="group___a_w_k.html#gaeb9260d5f49b01fab90daedb57fdaedf">AWK_DeInit</a></div><div class="ttdeci">void AWK_DeInit(void)</div><div class="ttdoc">Deinitializes the AWK peripheral registers to their default reset values.</div><div class="ttdef"><b>Definition:</b> wb32l003_awk.c:36</div></div>
<div class="ttc" id="struct_a_w_k___init_type_def_html_a1d72fa6916998001e3a023afa3b5a309"><div class="ttname"><a href="struct_a_w_k___init_type_def.html#a1d72fa6916998001e3a023afa3b5a309">AWK_InitTypeDef::AWK_HSE_PRSC</a></div><div class="ttdeci">uint32_t AWK_HSE_PRSC</div><div class="ttdef"><b>Definition:</b> wb32l003_awk.h:37</div></div>
<div class="ttc" id="group___a_w_k_html_gac75694af5d4437bd8849463bfa6eeb8d"><div class="ttname"><a href="group___a_w_k.html#gac75694af5d4437bd8849463bfa6eeb8d">AWK_ClearFlag</a></div><div class="ttdeci">void AWK_ClearFlag(void)</div><div class="ttdoc">Clears the AWK pending flag.</div><div class="ttdef"><b>Definition:</b> wb32l003_awk.c:119</div></div>
<div class="ttc" id="struct_a_w_k___init_type_def_html_a188e0b04e3b28467345a4e364883782f"><div class="ttname"><a href="struct_a_w_k___init_type_def.html#a188e0b04e3b28467345a4e364883782f">AWK_InitTypeDef::AWK_CLK_SEL</a></div><div class="ttdeci">uint32_t AWK_CLK_SEL</div><div class="ttdef"><b>Definition:</b> wb32l003_awk.h:36</div></div>
<div class="ttc" id="group___a_w_k_html_ga5925a1395f7a44e64ace28c64186518f"><div class="ttname"><a href="group___a_w_k.html#ga5925a1395f7a44e64ace28c64186518f">AWK_Cmd</a></div><div class="ttdeci">void AWK_Cmd(FunctionalState NewState)</div><div class="ttdoc">Enables or disables the AWK peripheral.</div><div class="ttdef"><b>Definition:</b> wb32l003_awk.c:73</div></div>
<div class="ttc" id="group___a_w_k_html_gadc631292241da5c23be9b270d28f92dd"><div class="ttname"><a href="group___a_w_k.html#gadc631292241da5c23be9b270d28f92dd">AWK_GetFlagStatus</a></div><div class="ttdeci">FlagStatus AWK_GetFlagStatus(void)</div><div class="ttdoc">Checks whether the specified AWK flag is set or not.</div><div class="ttdef"><b>Definition:</b> wb32l003_awk.c:96</div></div>
<div class="ttc" id="group___a_w_k_html_ga466833d5ddf980438de3cb2aca78e34b"><div class="ttname"><a href="group___a_w_k.html#ga466833d5ddf980438de3cb2aca78e34b">AWK_Init</a></div><div class="ttdeci">void AWK_Init(AWK_InitTypeDef *AWK_InitStruct)</div><div class="ttdoc">Initializes the AWK peripheral according to the specified parameters in the AWK_InitStruct.</div><div class="ttdef"><b>Definition:</b> wb32l003_awk.c:49</div></div>
<div class="ttc" id="struct_a_w_k___init_type_def_html"><div class="ttname"><a href="struct_a_w_k___init_type_def.html">AWK_InitTypeDef</a></div><div class="ttdoc">AWK Init structure definition.</div><div class="ttdef"><b>Definition:</b> wb32l003_awk.h:34</div></div>
</div><!-- fragment --></div><!-- contents -->
<!-- start footer part -->
<hr class="footer"/><address class="footer"><small>
Generated by Westberry Technology (ChangZhou) Corp., Ltd. All rights reserved.
</small></address>
</body>
</html>
